<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>link</title>
</head>
<body>
<table border="1" width="500px" cellspacing="0">
    <thead>
    <tr><th>姓名</th><th>电话</th><th>操作</th></tr>
    </thead>
    <tbody>
    <tr th:each="link : ${pageObj.list}">
        <td th:text="${link.name}"></td>
        <td th:text="${link.phone}"></td>
        <td>
            <a th:href="@{/link/del(id=${link.id})}">删除</a>
            <a th:href="@{/link/findById(id=${link.id})}">修改</a>
        </td>
    </tr>
    </tbody>
</table>
<a style="margin-left: 10px;"
   th:each="i:${#numbers.sequence(1,pageObj.pages)}"
   th:text="${i}"
   th:href="@{/link/findAll(pageNO=${i})}"></a>
<div>
    <a href="/html/link/add.html">添加</a>
</div>
</body>
</html>